`ifndef XOR_V
`define XOR_V

`include "and.v"
`include "or.v"
`include "nand.v"
module Xor(input a, b, output out);
    wire or_out, nand_out;
    Or or1(a, b, or_out);
    Nand nand1(a, b, nand_out);
    And and1(or_out, nand_out, out);
endmodule
`endif